/*
 * An XML document type.
 * Localname: mail
 * Namespace: urn:jbpm.org:jpdl-3.2
 * Java type: x2.orgJpdl3.jbpm.MailDocument
 *
 * Automatically generated - do not modify.
 */
package x2.orgJpdl3.jbpm.impl;
/**
 * A document containing one mail(@urn:jbpm.org:jpdl-3.2) element.
 *
 * This is a complex type.
 */
public class MailDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements x2.orgJpdl3.jbpm.MailDocument
{
    private static final long serialVersionUID = 1L;
    
    public MailDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName MAIL$0 = 
        new javax.xml.namespace.QName("urn:jbpm.org:jpdl-3.2", "mail");
    
    
    /**
     * Gets the "mail" element
     */
    public x2.orgJpdl3.jbpm.MailDocument.Mail getMail()
    {
        synchronized (monitor())
        {
            check_orphaned();
            x2.orgJpdl3.jbpm.MailDocument.Mail target = null;
            target = (x2.orgJpdl3.jbpm.MailDocument.Mail)get_store().find_element_user(MAIL$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "mail" element
     */
    public void setMail(x2.orgJpdl3.jbpm.MailDocument.Mail mail)
    {
        synchronized (monitor())
        {
            check_orphaned();
            x2.orgJpdl3.jbpm.MailDocument.Mail target = null;
            target = (x2.orgJpdl3.jbpm.MailDocument.Mail)get_store().find_element_user(MAIL$0, 0);
            if (target == null)
            {
                target = (x2.orgJpdl3.jbpm.MailDocument.Mail)get_store().add_element_user(MAIL$0);
            }
            target.set(mail);
        }
    }
    
    /**
     * Appends and returns a new empty "mail" element
     */
    public x2.orgJpdl3.jbpm.MailDocument.Mail addNewMail()
    {
        synchronized (monitor())
        {
            check_orphaned();
            x2.orgJpdl3.jbpm.MailDocument.Mail target = null;
            target = (x2.orgJpdl3.jbpm.MailDocument.Mail)get_store().add_element_user(MAIL$0);
            return target;
        }
    }
    /**
     * An XML mail(@urn:jbpm.org:jpdl-3.2).
     *
     * This is a complex type.
     */
    public static class MailImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements x2.orgJpdl3.jbpm.MailDocument.Mail
    {
        private static final long serialVersionUID = 1L;
        
        public MailImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName SUBJECT$0 = 
            new javax.xml.namespace.QName("urn:jbpm.org:jpdl-3.2", "subject");
        private static final javax.xml.namespace.QName TEXT$2 = 
            new javax.xml.namespace.QName("urn:jbpm.org:jpdl-3.2", "text");
        private static final javax.xml.namespace.QName NAME$4 = 
            new javax.xml.namespace.QName("", "name");
        private static final javax.xml.namespace.QName ASYNC$6 = 
            new javax.xml.namespace.QName("", "async");
        private static final javax.xml.namespace.QName TEMPLATE$8 = 
            new javax.xml.namespace.QName("", "template");
        private static final javax.xml.namespace.QName ACTORS$10 = 
            new javax.xml.namespace.QName("", "actors");
        private static final javax.xml.namespace.QName TO$12 = 
            new javax.xml.namespace.QName("", "to");
        private static final javax.xml.namespace.QName SUBJECT2$14 = 
            new javax.xml.namespace.QName("", "subject");
        private static final javax.xml.namespace.QName TEXT2$16 = 
            new javax.xml.namespace.QName("", "text");
        
        
        /**
         * Gets a List of "subject" elements
         */
        public java.util.List<java.lang.String> getSubjectList()
        {
            final class SubjectList extends java.util.AbstractList<java.lang.String>
            {
                public java.lang.String get(int i)
                    { return MailImpl.this.getSubjectArray(i); }
                
                public java.lang.String set(int i, java.lang.String o)
                {
                    java.lang.String old = MailImpl.this.getSubjectArray(i);
                    MailImpl.this.setSubjectArray(i, o);
                    return old;
                }
                
                public void add(int i, java.lang.String o)
                    { MailImpl.this.insertSubject(i, o); }
                
                public java.lang.String remove(int i)
                {
                    java.lang.String old = MailImpl.this.getSubjectArray(i);
                    MailImpl.this.removeSubject(i);
                    return old;
                }
                
                public int size()
                    { return MailImpl.this.sizeOfSubjectArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new SubjectList();
            }
        }
        
        /**
         * Gets array of all "subject" elements
         * @deprecated
         */
        public java.lang.String[] getSubjectArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List<org.apache.xmlbeans.XmlString> targetList = new java.util.ArrayList<org.apache.xmlbeans.XmlString>();
                get_store().find_all_element_users(SUBJECT$0, targetList);
                java.lang.String[] result = new java.lang.String[targetList.size()];
                for (int i = 0, len = targetList.size() ; i < len ; i++)
                    result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
                return result;
            }
        }
        
        /**
         * Gets ith "subject" element
         */
        public java.lang.String getSubjectArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUBJECT$0, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) a List of "subject" elements
         */
        public java.util.List<org.apache.xmlbeans.XmlString> xgetSubjectList()
        {
            final class SubjectList extends java.util.AbstractList<org.apache.xmlbeans.XmlString>
            {
                public org.apache.xmlbeans.XmlString get(int i)
                    { return MailImpl.this.xgetSubjectArray(i); }
                
                public org.apache.xmlbeans.XmlString set(int i, org.apache.xmlbeans.XmlString o)
                {
                    org.apache.xmlbeans.XmlString old = MailImpl.this.xgetSubjectArray(i);
                    MailImpl.this.xsetSubjectArray(i, o);
                    return old;
                }
                
                public void add(int i, org.apache.xmlbeans.XmlString o)
                    { MailImpl.this.insertNewSubject(i).set(o); }
                
                public org.apache.xmlbeans.XmlString remove(int i)
                {
                    org.apache.xmlbeans.XmlString old = MailImpl.this.xgetSubjectArray(i);
                    MailImpl.this.removeSubject(i);
                    return old;
                }
                
                public int size()
                    { return MailImpl.this.sizeOfSubjectArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new SubjectList();
            }
        }
        
        /**
         * Gets array of all "subject" elements
         * @deprecated
         */
        public org.apache.xmlbeans.XmlString[] xgetSubjectArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List<org.apache.xmlbeans.XmlString> targetList = new java.util.ArrayList<org.apache.xmlbeans.XmlString>();
                get_store().find_all_element_users(SUBJECT$0, targetList);
                org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets (as xml) ith "subject" element
         */
        public org.apache.xmlbeans.XmlString xgetSubjectArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SUBJECT$0, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return (org.apache.xmlbeans.XmlString)target;
            }
        }
        
        /**
         * Returns number of "subject" element
         */
        public int sizeOfSubjectArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(SUBJECT$0);
            }
        }
        
        /**
         * Sets array of all "subject" element
         */
        public void setSubjectArray(java.lang.String[] subjectArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(subjectArray, SUBJECT$0);
            }
        }
        
        /**
         * Sets ith "subject" element
         */
        public void setSubjectArray(int i, java.lang.String subject)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUBJECT$0, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.setStringValue(subject);
            }
        }
        
        /**
         * Sets (as xml) array of all "subject" element
         */
        public void xsetSubjectArray(org.apache.xmlbeans.XmlString[]subjectArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(subjectArray, SUBJECT$0);
            }
        }
        
        /**
         * Sets (as xml) ith "subject" element
         */
        public void xsetSubjectArray(int i, org.apache.xmlbeans.XmlString subject)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SUBJECT$0, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(subject);
            }
        }
        
        /**
         * Inserts the value as the ith "subject" element
         */
        public void insertSubject(int i, java.lang.String subject)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = 
                    (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(SUBJECT$0, i);
                target.setStringValue(subject);
            }
        }
        
        /**
         * Appends the value as the last "subject" element
         */
        public void addSubject(java.lang.String subject)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SUBJECT$0);
                target.setStringValue(subject);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "subject" element
         */
        public org.apache.xmlbeans.XmlString insertNewSubject(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(SUBJECT$0, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "subject" element
         */
        public org.apache.xmlbeans.XmlString addNewSubject()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SUBJECT$0);
                return target;
            }
        }
        
        /**
         * Removes the ith "subject" element
         */
        public void removeSubject(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(SUBJECT$0, i);
            }
        }
        
        /**
         * Gets a List of "text" elements
         */
        public java.util.List<java.lang.String> getTextList()
        {
            final class TextList extends java.util.AbstractList<java.lang.String>
            {
                public java.lang.String get(int i)
                    { return MailImpl.this.getTextArray(i); }
                
                public java.lang.String set(int i, java.lang.String o)
                {
                    java.lang.String old = MailImpl.this.getTextArray(i);
                    MailImpl.this.setTextArray(i, o);
                    return old;
                }
                
                public void add(int i, java.lang.String o)
                    { MailImpl.this.insertText(i, o); }
                
                public java.lang.String remove(int i)
                {
                    java.lang.String old = MailImpl.this.getTextArray(i);
                    MailImpl.this.removeText(i);
                    return old;
                }
                
                public int size()
                    { return MailImpl.this.sizeOfTextArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new TextList();
            }
        }
        
        /**
         * Gets array of all "text" elements
         * @deprecated
         */
        public java.lang.String[] getTextArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List<org.apache.xmlbeans.XmlString> targetList = new java.util.ArrayList<org.apache.xmlbeans.XmlString>();
                get_store().find_all_element_users(TEXT$2, targetList);
                java.lang.String[] result = new java.lang.String[targetList.size()];
                for (int i = 0, len = targetList.size() ; i < len ; i++)
                    result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
                return result;
            }
        }
        
        /**
         * Gets ith "text" element
         */
        public java.lang.String getTextArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TEXT$2, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) a List of "text" elements
         */
        public java.util.List<org.apache.xmlbeans.XmlString> xgetTextList()
        {
            final class TextList extends java.util.AbstractList<org.apache.xmlbeans.XmlString>
            {
                public org.apache.xmlbeans.XmlString get(int i)
                    { return MailImpl.this.xgetTextArray(i); }
                
                public org.apache.xmlbeans.XmlString set(int i, org.apache.xmlbeans.XmlString o)
                {
                    org.apache.xmlbeans.XmlString old = MailImpl.this.xgetTextArray(i);
                    MailImpl.this.xsetTextArray(i, o);
                    return old;
                }
                
                public void add(int i, org.apache.xmlbeans.XmlString o)
                    { MailImpl.this.insertNewText(i).set(o); }
                
                public org.apache.xmlbeans.XmlString remove(int i)
                {
                    org.apache.xmlbeans.XmlString old = MailImpl.this.xgetTextArray(i);
                    MailImpl.this.removeText(i);
                    return old;
                }
                
                public int size()
                    { return MailImpl.this.sizeOfTextArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new TextList();
            }
        }
        
        /**
         * Gets array of all "text" elements
         * @deprecated
         */
        public org.apache.xmlbeans.XmlString[] xgetTextArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List<org.apache.xmlbeans.XmlString> targetList = new java.util.ArrayList<org.apache.xmlbeans.XmlString>();
                get_store().find_all_element_users(TEXT$2, targetList);
                org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets (as xml) ith "text" element
         */
        public org.apache.xmlbeans.XmlString xgetTextArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TEXT$2, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return (org.apache.xmlbeans.XmlString)target;
            }
        }
        
        /**
         * Returns number of "text" element
         */
        public int sizeOfTextArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(TEXT$2);
            }
        }
        
        /**
         * Sets array of all "text" element
         */
        public void setTextArray(java.lang.String[] textArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(textArray, TEXT$2);
            }
        }
        
        /**
         * Sets ith "text" element
         */
        public void setTextArray(int i, java.lang.String text)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TEXT$2, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.setStringValue(text);
            }
        }
        
        /**
         * Sets (as xml) array of all "text" element
         */
        public void xsetTextArray(org.apache.xmlbeans.XmlString[]textArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(textArray, TEXT$2);
            }
        }
        
        /**
         * Sets (as xml) ith "text" element
         */
        public void xsetTextArray(int i, org.apache.xmlbeans.XmlString text)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TEXT$2, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(text);
            }
        }
        
        /**
         * Inserts the value as the ith "text" element
         */
        public void insertText(int i, java.lang.String text)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = 
                    (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(TEXT$2, i);
                target.setStringValue(text);
            }
        }
        
        /**
         * Appends the value as the last "text" element
         */
        public void addText(java.lang.String text)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TEXT$2);
                target.setStringValue(text);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "text" element
         */
        public org.apache.xmlbeans.XmlString insertNewText(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(TEXT$2, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "text" element
         */
        public org.apache.xmlbeans.XmlString addNewText()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(TEXT$2);
                return target;
            }
        }
        
        /**
         * Removes the ith "text" element
         */
        public void removeText(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(TEXT$2, i);
            }
        }
        
        /**
         * Gets the "name" attribute
         */
        public java.lang.String getName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$4);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "name" attribute
         */
        public org.apache.xmlbeans.XmlString xgetName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$4);
                return target;
            }
        }
        
        /**
         * Sets the "name" attribute
         */
        public void setName(java.lang.String name)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$4);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$4);
                }
                target.setStringValue(name);
            }
        }
        
        /**
         * Sets (as xml) the "name" attribute
         */
        public void xsetName(org.apache.xmlbeans.XmlString name)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$4);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$4);
                }
                target.set(name);
            }
        }
        
        /**
         * Gets the "async" attribute
         */
        public java.lang.String getAsync()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ASYNC$6);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(ASYNC$6);
                }
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "async" attribute
         */
        public org.apache.xmlbeans.XmlString xgetAsync()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ASYNC$6);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_default_attribute_value(ASYNC$6);
                }
                return target;
            }
        }
        
        /**
         * True if has "async" attribute
         */
        public boolean isSetAsync()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(ASYNC$6) != null;
            }
        }
        
        /**
         * Sets the "async" attribute
         */
        public void setAsync(java.lang.String async)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ASYNC$6);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ASYNC$6);
                }
                target.setStringValue(async);
            }
        }
        
        /**
         * Sets (as xml) the "async" attribute
         */
        public void xsetAsync(org.apache.xmlbeans.XmlString async)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ASYNC$6);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(ASYNC$6);
                }
                target.set(async);
            }
        }
        
        /**
         * Unsets the "async" attribute
         */
        public void unsetAsync()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(ASYNC$6);
            }
        }
        
        /**
         * Gets the "template" attribute
         */
        public java.lang.String getTemplate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TEMPLATE$8);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "template" attribute
         */
        public org.apache.xmlbeans.XmlString xgetTemplate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TEMPLATE$8);
                return target;
            }
        }
        
        /**
         * True if has "template" attribute
         */
        public boolean isSetTemplate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(TEMPLATE$8) != null;
            }
        }
        
        /**
         * Sets the "template" attribute
         */
        public void setTemplate(java.lang.String template)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TEMPLATE$8);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TEMPLATE$8);
                }
                target.setStringValue(template);
            }
        }
        
        /**
         * Sets (as xml) the "template" attribute
         */
        public void xsetTemplate(org.apache.xmlbeans.XmlString template)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TEMPLATE$8);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(TEMPLATE$8);
                }
                target.set(template);
            }
        }
        
        /**
         * Unsets the "template" attribute
         */
        public void unsetTemplate()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(TEMPLATE$8);
            }
        }
        
        /**
         * Gets the "actors" attribute
         */
        public java.lang.String getActors()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ACTORS$10);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "actors" attribute
         */
        public org.apache.xmlbeans.XmlString xgetActors()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ACTORS$10);
                return target;
            }
        }
        
        /**
         * True if has "actors" attribute
         */
        public boolean isSetActors()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(ACTORS$10) != null;
            }
        }
        
        /**
         * Sets the "actors" attribute
         */
        public void setActors(java.lang.String actors)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ACTORS$10);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ACTORS$10);
                }
                target.setStringValue(actors);
            }
        }
        
        /**
         * Sets (as xml) the "actors" attribute
         */
        public void xsetActors(org.apache.xmlbeans.XmlString actors)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ACTORS$10);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(ACTORS$10);
                }
                target.set(actors);
            }
        }
        
        /**
         * Unsets the "actors" attribute
         */
        public void unsetActors()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(ACTORS$10);
            }
        }
        
        /**
         * Gets the "to" attribute
         */
        public java.lang.String getTo()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TO$12);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "to" attribute
         */
        public org.apache.xmlbeans.XmlString xgetTo()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TO$12);
                return target;
            }
        }
        
        /**
         * True if has "to" attribute
         */
        public boolean isSetTo()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(TO$12) != null;
            }
        }
        
        /**
         * Sets the "to" attribute
         */
        public void setTo(java.lang.String to)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TO$12);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TO$12);
                }
                target.setStringValue(to);
            }
        }
        
        /**
         * Sets (as xml) the "to" attribute
         */
        public void xsetTo(org.apache.xmlbeans.XmlString to)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TO$12);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(TO$12);
                }
                target.set(to);
            }
        }
        
        /**
         * Unsets the "to" attribute
         */
        public void unsetTo()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(TO$12);
            }
        }
        
        /**
         * Gets the "subject" attribute
         */
        public java.lang.String getSubject2()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SUBJECT2$14);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "subject" attribute
         */
        public org.apache.xmlbeans.XmlString xgetSubject2()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(SUBJECT2$14);
                return target;
            }
        }
        
        /**
         * True if has "subject" attribute
         */
        public boolean isSetSubject2()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(SUBJECT2$14) != null;
            }
        }
        
        /**
         * Sets the "subject" attribute
         */
        public void setSubject2(java.lang.String subject2)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SUBJECT2$14);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SUBJECT2$14);
                }
                target.setStringValue(subject2);
            }
        }
        
        /**
         * Sets (as xml) the "subject" attribute
         */
        public void xsetSubject2(org.apache.xmlbeans.XmlString subject2)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(SUBJECT2$14);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(SUBJECT2$14);
                }
                target.set(subject2);
            }
        }
        
        /**
         * Unsets the "subject" attribute
         */
        public void unsetSubject2()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(SUBJECT2$14);
            }
        }
        
        /**
         * Gets the "text" attribute
         */
        public java.lang.String getText2()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TEXT2$16);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "text" attribute
         */
        public org.apache.xmlbeans.XmlString xgetText2()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TEXT2$16);
                return target;
            }
        }
        
        /**
         * True if has "text" attribute
         */
        public boolean isSetText2()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(TEXT2$16) != null;
            }
        }
        
        /**
         * Sets the "text" attribute
         */
        public void setText2(java.lang.String text2)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TEXT2$16);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TEXT2$16);
                }
                target.setStringValue(text2);
            }
        }
        
        /**
         * Sets (as xml) the "text" attribute
         */
        public void xsetText2(org.apache.xmlbeans.XmlString text2)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TEXT2$16);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(TEXT2$16);
                }
                target.set(text2);
            }
        }
        
        /**
         * Unsets the "text" attribute
         */
        public void unsetText2()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(TEXT2$16);
            }
        }
    }
}
